package org.csu.secondhand.api.service;

import org.csu.secondhand.api.entity.Posting;

import java.util.List;

public interface PostingService {
    List<Posting> getAllPosting();

    List<Posting> getMyPosting(String user);

    List<Posting> getThoseILike(String user);

    List<Posting> getThoseIComment(String user);

    List<Posting> searchPosting(String keyword);

    Posting insertPosting(Posting posting);

    Posting getPostingById(long id);

    Posting deletePosting(long id);

    Posting editPosting(Posting posting);

    void likesPlus(long id);

    void likesMinus(long id);

    void commentsPlus(long id);

    void commentsMinus(long id);

}
